<template>
    <div class="login-wrap">
        <div class="ms-login">
            <div class="ms-title">请选择用户身份</div>
            <el-form :model="param" ref="judge" label-width="0px" class="ms-content">
                <div class="login-btn-wrapper">
                    <el-button class="user-login-btn" @click="userLogin()">用户</el-button>
                    <el-button class="admin-login-btn" @click="adminLogin()">管理员</el-button>
                </div>
            </el-form>
        </div>
    </div>
</template>

<script>
    export default {
        data: function() {
            return {
            };
        },
        methods: {
            userLogin() {
                this.$router.push('/u_login');
            },
            adminLogin() {
                this.$router.push('/login');
            },
        },

    };
</script>

<style scoped>
    .login-wrap {
        position: relative;
        width: 100%;
        height: 100%;
        /*background-image: url(../../assets/img/login-bg.jpg);*/
        background-image: url(../../assets/img/login-bg.jpg);
        background-size: 100%;
    }
    .ms-title {
        width: 100%;
        line-height: 50px;
        text-align: center;
        font-size: 20px;
        color: #fff;
        border-bottom: 1px solid #ddd;
    }
    .ms-login {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 350px;
        margin: -190px 0 0 -175px;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.3);
        overflow: hidden;
    }
    .ms-content {
        padding: 30px 30px;
    }
    .user-login-btn {
        font-size: 20px;
        font-family: 华文新魏;
        /*border-color: #F8A535;*/
        border-width: 3px;
        align: center;
        width: 135px;
        height: 135px;
    }
    .admin-login-btn {
        font-family: 华文新魏;
        /*border-color: #85ce61;*/
        border-width: 3px;
        font-size: 20px;
        align: center;
        width: 135px;
        height: 135px;
        /*margin-bottom: 10px;*/
    }
    .login-btn-wrapper {
        text-align: left;
        margin-top: 10px;
    }

</style>

